// src/store/tracksTypes.ts

import { TimelineClipItem, VideoSourceData } from '@/components/TimelineContentRow';

export type TrackType = 'text' | 'sticker' | 'background' | 'video' | 'audio';

// 单个轨道对象的类型
export interface Track {
    id: string;
    type: TrackType;
    title: string;
    icon?: string;
    items: Array<TimelineClipItem | VideoSourceData>;
    canStackItems: boolean;
    isVisible: boolean;
    height: number;
    draftId: string;
}

// 轨道切片的状态类型
export interface TracksState {
    tracks: Track[];
}
